home *** CD-ROM | disk | FTP | other *** search
- # Shadow Information Services, Inc.
- # SHADOW login script for Trumpet Winsock 2.0 rev b
- # edited by: Jack Fetter
- #
- # NOTE: This script is SLIP only!!!
- #
- # set up some string variables for dialing up SHADOW host
- #
- if ![load $numbers]
- if [query $numbers "Enter your dial up phone number..."]
- save $numbers
- end
- end
- if ![load $usernames]
- if [usernames "Enter your login username..."]
- save $usernames
- end
- end
- if ![load $passwords]
- if [passwords "Enter your login password..."]
- save $passwords
- end
- end
- $modemsetup = "&C1&D2S11=60"
- $prompt = "annex:"
- $userprompt = "Username:"
- $passprompt = "Password:"
- $slipcmd = "2"
- $addrtarg = "Your address is"
- #
- %attempts = 10
- #
- output "ATZ"\13
- if ! [input 10 OK\n]
- display "Modem is not responding"\n
- abort
- end
- #
- # setup our modem commands
- #
- output "AT"$modemsetup\13
- input 10 OK\n
- #
- # send phone number
- #
- %n = 0
- repeat
- if %n = %attempts
- display "Too many dial attempts"\n
- abort
- end
- display " "\n
- display "calling SHADOW host server..."\n
- display " "\n
- display "... login proces
- s may take up to 45 seconds..."\n
- display " "\n
- output "ATDT"$numbers\13
- %ok = [input 30 CONNECT]
- %n = %n + 1
- until %ok
- input 10 \n
- #
- # wait till it's safe to send because some modem's hang up
- # if you transmit during the connection phase
- # <if problems auto-logging on, increase SLEEP time...>
- #
- sleep 5
- #
- # wait for the Annex: prompt
- #
- input 30 $prompt
- #
- # jump into slip mode
- #
- output $slipcmd\13
- #
- # wait for the username prompt
- #
- input 30 $userprompt
- output $usernames\13
- #
- # and the password
- #
- input 30 $passprompt
- output $passwords\13
- #
- # we are now logged in
- #
- # wait for the address string
- #
- input 30 $addrtarg
- #
- # parse address
- #
- address 15
- input 15 \n
- #
- # we are now connected, logged in and in slip mode.
- #
- display \n
- display "Connected... Your IP address is " \i\n
- #
- sleep 2
- display " "\n
- display "grabbing IP address for automated login... please wait..."\n
- #
- # sleep for 5 seconds then issue ESC character to kick into slip/ppp
- #
- sleep 5
- output \27
- end
- #
- # now we are finished...
- # SHADOW auto-logon for Trumpet WinSock 2.0b...
-